package myandroid.net.DTO;

import java.sql.Time;

public class DTO_TaskTimeTable {
	
	private String gTaskTimeTableID;
	private String gTaskTimeTableName;
	private String gTaskTimeTableDescription;
	private int gTaskTimeTableDayOfWeek;
	private String gTaskTimeTableAvatar;
	private String gTimeTableID;
	private Time gTaskTimeTableStartTime;
	private int gTaskTimeTableLongTime;
	
	public DTO_TaskTimeTable(){
		this.gTaskTimeTableID = null;
		this.gTaskTimeTableName = null;
		this.gTaskTimeTableDescription = null;
		this.gTaskTimeTableDayOfWeek = 0;
		this.gTaskTimeTableAvatar = null;
		this.gTimeTableID = null;
		this.gTaskTimeTableStartTime = null;
		this.gTaskTimeTableLongTime =45;
	}
	
	public DTO_TaskTimeTable(String mTaskTimeTableID, String mTaskTimeTableName, String mTaskTimeTableDescription, 
			int mTaskTimeTableDayOfWeek, String mTaskTimeTableAvatar, String mTimeTableID,
			Time mTaskTimeTableStartTime, int mTaskTimeTableLongTime){
		this.gTaskTimeTableID = mTaskTimeTableID;
		this.gTaskTimeTableName = mTaskTimeTableName;
		this.gTaskTimeTableDescription = mTaskTimeTableDescription;
		this.gTaskTimeTableDayOfWeek = mTaskTimeTableDayOfWeek;
		this.gTaskTimeTableAvatar = mTaskTimeTableAvatar;
		this.gTimeTableID = mTimeTableID;
		this.gTaskTimeTableStartTime = mTaskTimeTableStartTime;
		this.gTaskTimeTableLongTime =mTaskTimeTableLongTime;		
	}

	public String getgTaskTimeTableID() {
		return gTaskTimeTableID;
	}

	public void setgTaskTimeTableID(String gTaskTimeTableID) {
		this.gTaskTimeTableID = gTaskTimeTableID;
	}

	public String getgTaskTimeTableName() {
		return gTaskTimeTableName;
	}

	public void setgTaskTimeTableName(String gTaskTimeTableName) {
		this.gTaskTimeTableName = gTaskTimeTableName;
	}

	public String getgTaskTimeTableDescription() {
		return gTaskTimeTableDescription;
	}

	public void setgTaskTimeTableDescription(String gTaskTimeTableDescription) {
		this.gTaskTimeTableDescription = gTaskTimeTableDescription;
	}

	public int getgTaskTimeTableDayOfWeek() {
		return gTaskTimeTableDayOfWeek;
	}

	public void setgTaskTimeTableDayOfWeek(int gTaskTimeTableDayOfWeek) {
		this.gTaskTimeTableDayOfWeek = gTaskTimeTableDayOfWeek;
	}

	public String getgTaskTimeTableAvatar() {
		return gTaskTimeTableAvatar;
	}

	public void setgTaskTimeTableAvatar(String gTaskTimeTableAvatar) {
		this.gTaskTimeTableAvatar = gTaskTimeTableAvatar;
	}

	public String getgTimeTableID() {
		return gTimeTableID;
	}

	public void setgTimeTableID(String gTimeTableID) {
		this.gTimeTableID = gTimeTableID;
	}

	public Time getgTaskTimeTableStartTime() {
		return gTaskTimeTableStartTime;
	}

	public void setgTaskTimeTableStartTime(Time gTaskTimeTableStartTime) {
		this.gTaskTimeTableStartTime = gTaskTimeTableStartTime;
	}

	public int getgTaskTimeTableLongTime() {
		return gTaskTimeTableLongTime;
	}

	public void setgTaskTimeTableLongTime(int gTaskTimeTableLongTime) {
		this.gTaskTimeTableLongTime = gTaskTimeTableLongTime;
	}

	@Override
	public String toString() {
		String str = gTaskTimeTableID.toString().trim() + "\t|";
		str += gTaskTimeTableName.toString().trim() + "\t|";
		str += gTaskTimeTableDescription.toString().trim() + "\t|";
		str += gTaskTimeTableDayOfWeek + "\t|";
		str += gTaskTimeTableAvatar + "\t|";
		str += gTimeTableID.toString().trim() + "\t|";
		str += gTaskTimeTableStartTime.toString().trim() + "\t|";
		str += gTaskTimeTableLongTime + "|";
		return str;
	}	
}
